<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/inc/taglib.jsp"%>
<style>
.pageFormContent label {
	width: 130px;
}
</style>
<div class="pageContent">
	<form method="post" action="${pageContext.request.contextPath}${requestScope.record ==null ?'/weekly/monthly/insert' :'/weekly/monthly/update' }" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
		<div class="pageFormContent" layoutH="56">
			<!-- 关闭窗口 -->
			<input type="hidden" name="callbackType" value="closeCurrent" />
			<!-- 隐藏表单 -->

			<c:if test="${requestScope.record !=null}">

				<input type="hidden" name="id" value="${requestScope.record.id}" />

			</c:if>

			<%-- <div class="unit">
				<label>部门id</label> <input name="dmid" readonly="readonly" maxlength="50" type="text" value="${requestScope.record.dmid}" />
			</div>
			<div class="unit">
				<label>制表人</label> <input name="meid" readonly="readonly" maxlength="50" type="text" value="${requestScope.record.meid}" />
			</div>
			<div class="unit">
				<label>职位id</label> <input name="rid" readonly="readonly" maxlength="50" type="text" value="${requestScope.record.rid}" />
			</div>
			<div class="unit">
				<label>制表时间</label> <input name="tltm" readonly="readonly" maxlength="${field.size}" type="text" value="${requestScope.record.tltm}" />
			</div> --%>
			<p>
				<label>职位</label> <select name="rid" disabled="disabled">
					<option value="">请选择</option>
					<c:forEach items="${requestScope.list}" var="item">
						<option value="${item.id}" ${item.id == requestScope.record.rid?'selected':''}>${item.name }</option>
					</c:forEach>
				</select>
			</p>
			<div class="unit">
				<label>完成月份</label> <input name="smmn" readonly="readonly" disabled="disabled" readonly="readonly" type="text" value="<fmt:formatDate value='${requestScope.record.smmn}' pattern='yyyy-MM'  />" />
			</div>
			<div class="unit">
				<label>完成内容</label>
				<textarea name="smct" cols="150" rows="30" readonly="readonly">${requestScope.record.smct}</textarea>
			</div>
			<div class="unit">
				<label>完成情况</label>
				<textarea name="smcp" cols="150" rows="30" readonly="readonly">${requestScope.record.smcp}</textarea>
			</div>
			<div class="unit">
				<label>本月工作失误、难点</label>
				<textarea name="mstk" cols="150" rows="30" readonly="readonly">${requestScope.record.mstk}</textarea>
			</div>
			<div class="unit">
				<label>计划月份</label> <input name="pamn" readonly="readonly" type="text" value="<fmt:formatDate value='${requestScope.record.pamn}' pattern='yyyy-MM'  />" />
			</div>
			<div class="unit">
				<label>计划内容</label>
				<textarea name="pact" cols="150" rows="30" readonly="readonly">${requestScope.record.pact}</textarea>
			</div>
			<div class="unit">
				<label>计划情况</label>
				<textarea name="pacp" cols="150" rows="30" readonly="readonly">${requestScope.record.pacp}</textarea>
			</div>
			<div class="unit">
				<label>工作重点和目标</label>
				<textarea name="target" cols="150" rows="30" readonly="readonly">${requestScope.record.target}</textarea>
			</div>
			<div class="unit">
				<label>需要协调的问题</label>
				<textarea name="coor" cols="150" rows="30" readonly="readonly">${requestScope.record.coor}</textarea>
			</div>
			<%-- <div class="unit">
				<label>当操作人为null时，表示自动录入</label> <input name="operator" readonly="readonly" maxlength="45" type="text" value="${requestScope.record.operator}" />
			</div>
			<div class="unit">
				<label>添加时间</label> <input name="addTime" readonly="readonly" maxlength="${field.size}" type="text" value="${requestScope.record.addTime}" />
			</div>
			<div class="unit">
				<label>是否删除：0-未删除、1-已删除、2-不能删除</label> <input name="del" readonly="readonly" maxlength="1" type="text" value="${requestScope.record.del}" />
			</div> --%>

		</div>
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">保存</button>
						</div>
					</div></li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</form>
</div>
